/**
 * 
 */
package co.edu.eam.iso.enums;

import co.edu.eam.iso.util.MessagesUtil;

/**
 * @author Giovanny Ramirez Blandon
 * @version 1.0
 */
public enum ScaleEnum {
	
	NOT_SELECTED (1, 0, "label.scale.notSelected"),
	TERRIBLE     (2, 1, "label.scale.terrible"),
	BAD          (3, 2, "label.scale.bad"),
	FAIR         (4, 3, "label.scale.fair"),
	GOOD         (5, 4, "label.scale.good"),
	EXCELLENT    (6, 5, "label.scale.excellent");
	
	private int id;
	private int value;
	private String keyMessage;
	
	private ScaleEnum(int id, int value, String keyMessage) {
		this.id = id;
		this.value = value;
		this.keyMessage = keyMessage;
	}

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the value
	 */
	public int getValue() {
		return value;
	}

	/**
	 * @param value the value to set
	 */
	public void setValue(int value) {
		this.value = value;
	}
	
	/**
	 * @return the keyMessage
	 */
	public String getKeyMessage() {
		return keyMessage;
	}

	/**
	 * @param keyMessage the keyMessage to set
	 */
	public void setKeyMessage(String keyMessage) {
		this.keyMessage = keyMessage;
	}

	public String toString() {
		return MessagesUtil.getMessage(this.getKeyMessage());
	}

}
